public class Prime {
    public static void main(String[] args) {

        int i = 0;
        int j = 0;
        int paragon = 0;//辨别素数

        for (i = 2; i <= 100; i++) {
            for (j = 2; j <= Math.sqrt(i); j++) {
                if (i % j == 0) {
                    paragon = 1;
                }
            }

            if (paragon == 0) {
                System.out.println(i);
            }

            paragon = 0;
        }
    }
}
